package com.wdy.async.method.invocation;

import java.util.concurrent.ExecutionException;

/**
 * @ClassName: AsyncResult
 * @Description: TODO
 * @Date: 2019/12/30 15:49
 * @Author: wangdy001
 * @Version: 1.0
 */
public interface AsyncResult<T> {
    boolean isCompleted();
    T getValue() throws ExecutionException;
    void await() throws InterruptedException;
}
